package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName chufatiaojian
 */
@TableName(value ="chufatiaojian")
@Data
public class Chufatiaojian implements Serializable {
    /**
     * 
     */
    @TableId
        private Integer chuafid;

    /**
     *
`     */
    private String name;

    /**
     * 
     */
    private Integer scenesId;

    private String bijiao;
    private String canshu;
    private String danwei;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Chufatiaojian other = (Chufatiaojian) that;
        return (this.getChuafid() == null ? other.getChuafid() == null : this.getChuafid().equals(other.getChuafid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getScenesId() == null ? other.getScenesId() == null : this.getScenesId().equals(other.getScenesId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChuafid() == null) ? 0 : getChuafid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getScenesId() == null) ? 0 : getScenesId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", chuafid=").append(chuafid);
        sb.append(", name=").append(name);
        sb.append(", scenesId=").append(scenesId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}